
<!--HEADER-->
{include file="Public/header"/}
<!--HEADER-->
<div class="clearfix clearfix20"></div>
<div class="container tradeManagement">
    <div class="row">
        {include file="Public/readme"/}
        <div class="col-md-9">
            <ul class="nav nav-tabs mb-4" role="tablist">
                <li class="nav-item">
                    <a class="nav-link bg-dark text-white active" href="JavaScript:;" role="tab" data-toggle="tab">期货配资流水表</a>
                </li>
            </ul>
            <div class="tab-content">

                <table class="table table-md  table-hover text-center">
                    <thead class="table-dark">
                    <tr>
                        <th>id</th>
                        <th>配资的资金</th>
                        <th>出入金</th>
                        <th>新的配资-账户本来的优先资金</th>
                        <th>操作时间</th>
                    </tr>
                    </thead>
                    <tbody>
                    {foreach name="userAllocation" item="v"}
                    <tr>
                        <td>{$v.id}</td>
                        <td>{$v.priorityfunds/10000}万元</td>
                        <td> {if condition="$v['eae'] eq 0"}
                                                                                           出金
                            {else\}
                                                                                           入金
                            {/if}</td>
                        <td>{$v.action}</td>
                        <td>
                        	{$v.addtime}
                        </td>
                    </tr>
                    {/foreach}
                    </tbody>
                    <tfoot>
                   
                    </tfoot>
                </table>

            </div>
        </div>

    </div>
</div>
<br /><br /><br /><br /><br />
<!--footer-->
{include file="Public/footer"/}

</body>
</html>

<script>
    $(function(){
        $("#off").click(function(){
            if(confirm("确认结束操盘吗？取消操盘会回收配资资金！")){
                var end = 'end';
                $.post('__ROOT__/home/Tradermng/endthedisk',{end:end,codes:{:session('codes')}},function(data){
                    var obj = JSON.parse(data);
                    // alert(data);
                    if(obj.msg=='success'){
                        alert('操作成功');
                        window.location.reload();
                    }else{
                        alert(obj.msg);
                    }
                });
            };
        });
    });
</script>

